<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>BOS管理系统首页</title>
		<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
		<script src="../js/ztree/jquery.ztree.all-3.5.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="../js/ztree/zTreeStyle.css" />

		<script>
			$(function() {
				$('#grid').datagrid({

					toolbar: [{
						id:"edit",
						text:"编辑",
						iconCls: 'icon-edit',
						handler: function() { alert('edit') }
					}, '-', {
						id:"save",
						text:"保存",
						iconCls: 'icon-save',
						handler: function() { alert('save') }
					},'-', {
						id:"help",
						text:"帮助",
						iconCls: 'icon-help',
						handler: function() { alert('help') }

					}],
					striped:true,
					pagination:true,
					rownumbers:true,
					pageList:[3,5,10],
					pagePosition:"bottom",
					border:true,
					url: 'datagrid_data.json',
					columns: [
						[

							{ field: 'id', title: 'id', width: 100 },

							{ field: 'name', title: 'Name', width: 100 },

							{ field: 'price', title: 'Price', width: 100, align: 'right' }

						]
					]

				});

			})
		</script>

		<body>
			<table id="grid"></table>
		</body>

</html>